﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Index : System.Web.UI.Page
{
    protected string strPicXML;
    protected void Page_Load(object sender, EventArgs e)
    {
        OTS.BLL.BrandBLL brandBLL = new OTS.BLL.BrandBLL();
        OTS.BLL.ProductTypeBLL proTypeBLL = new OTS.BLL.ProductTypeBLL();

        this.rpType.DataSource = proTypeBLL.GetAllType();
        this.rpType.DataBind();

        this.rpBandImg.DataSource = brandBLL.GetAllBrand();
        this.rpBandImg.DataBind();

        OTS.BLL.IndexPicBLL bll = new OTS.BLL.IndexPicBLL();
        strPicXML = bll.GetTOP5PicXML();
    } 
}
